package com.nuanshui.heatedloan.baseservice.model;

public class BrownseRecord {
	private String type; // 类型
	private String userId; // 用户id
	private String name; // 商品名
	private String postId; // 商品id
	private String primaryAttribute; // 一级属性 和田玉
	private String opTime;	//操作时间
	/**
	 * 二级属性
	 */
	private String texture; // 材质
	private String color; // 和田玉色泽
	private String purpose; // 用途
	private String style; // 工艺风格
	private Integer weight; // 权重

	public static final Integer SEARCH_WEIGHT = 1; // 搜索权重
	public static final Integer BROWSE_WEIGHT = 2; // 权重
	// mongoDB中的表
	public static final String BRONSE_RECORD = "userBrownseRecord";

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPostId() {
		return postId;
	}

	public void setPostId(String postId) {
		this.postId = postId;
	}

	public String getPrimaryAttribute() {
		return primaryAttribute;
	}

	public void setPrimaryAttribute(String primaryAttribute) {
		this.primaryAttribute = primaryAttribute;
	}

	public String getTexture() {
		return texture;
	}

	public void setTexture(String texture) {
		this.texture = texture;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getPurpose() {
		return purpose;
	}

	public void setPurpose(String purpose) {
		this.purpose = purpose;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	public String getOpTime() {
		return opTime;
	}

	public void setOpTime(String opTime) {
		this.opTime = opTime;
	}

	public enum SubProperty {
		texture("材质"), color("和田玉色泽"), purpose("用途"), style("款式");
		private String attrName;

		SubProperty(String attrName) {
			this.attrName = attrName;
		}

		public String getAttrName() {
			return attrName;
		}

		public void setAttrName(String attrName) {
			this.attrName = attrName;
		}

	}
}
